//
// Created by wze-zero on 2024/8/1 001.
//
#include <iostream>

using namespace std;

int main() {
    char c;
    cin >> c;
    for (int i = 0; i < 3; ++i) {
        for (int j = 0; j < 3; ++j) {
            cout << c;
        }
        cout << endl;
    }
    return 0;
}